<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery3.3.1.js"></script>
    <style>
        #webchart{width: 200px;height: 200px;border: 1px solid skyblue;margin: 10px;}
    </style>
</head>
<body>
    <div id="webchart">div理由幼稚</div>
    <textarea></textarea>
    <input type="button" value="发送">
    <script>
        $(function(){
            $("input").click(function () {
                var cont=$('textarea').val();
                var oldtxt=$("#webchart").html();
                $("#webchart").html(oldtxt+cont+"<br>")
                $('textarea').val("");
            })
        })
    </script>
</body>
</html>